package com.lyy.king.common.utils.utils.excel.converters;

import com.lyy.king.common.utils.utils.excel.ExcelDataConverter;

public class StringToIntegerConverter extends ExcelDataConverter<Integer> {
    public StringToIntegerConverter(String constructorParam) {
        super(constructorParam);
    }

    @Override
    public Integer convert(Object value) {
        if (value instanceof String) {
            return Integer.parseInt((String) value);
        }
        return null;
    }
}